package com.qiniu.githubdata.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qiniu.githubdata.entity.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TagMapper extends BaseMapper<Tag> {
    @Select("SELECT id FROM tag WHERE type = #{type}")
    List<Long> getTagIdsByType(int type);
}
